package com.example.demo.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName company
 */
@TableName(value ="company")
public class Company implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 公司名称
     */
    private String name;

    /**
     * 社会信用代码
     */
    private String creditCode;

    /**
     * 
     */
    private String taxNo;

    /**
     * 
     */
    private String legalName;

    /**
     * 
     */
    private String legalNo;

    /**
     * 
     */
    private String addr;

    /**
     * 
     */
    private Integer registerDate;

    /**
     *
     */
    private Integer status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 公司名称
     */
    public String getName() {
        return name;
    }

    /**
     * 公司名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 社会信用代码
     */
    public String getCreditCode() {
        return creditCode;
    }

    /**
     * 社会信用代码
     */
    public void setCreditCode(String creditCode) {
        this.creditCode = creditCode;
    }

    /**
     * 
     */
    public String getTaxNo() {
        return taxNo;
    }

    /**
     * 
     */
    public void setTaxNo(String taxNo) {
        this.taxNo = taxNo;
    }

    /**
     * 
     */
    public String getLegalName() {
        return legalName;
    }

    /**
     * 
     */
    public void setLegalName(String legalName) {
        this.legalName = legalName;
    }

    /**
     * 
     */
    public String getLegalNo() {
        return legalNo;
    }

    /**
     * 
     */
    public void setLegalNo(String legalNo) {
        this.legalNo = legalNo;
    }

    /**
     * 
     */
    public String getAddr() {
        return addr;
    }

    /**
     * 
     */
    public void setAddr(String addr) {
        this.addr = addr;
    }

    /**
     * 
     */
    public Integer getRegisterDate() {
        return registerDate;
    }

    /**
     * 
     */
    public void setRegisterDate(Integer registerDate) {
        this.registerDate = registerDate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Company other = (Company) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getCreditCode() == null ? other.getCreditCode() == null : this.getCreditCode().equals(other.getCreditCode()))
            && (this.getTaxNo() == null ? other.getTaxNo() == null : this.getTaxNo().equals(other.getTaxNo()))
            && (this.getLegalName() == null ? other.getLegalName() == null : this.getLegalName().equals(other.getLegalName()))
            && (this.getLegalNo() == null ? other.getLegalNo() == null : this.getLegalNo().equals(other.getLegalNo()))
            && (this.getAddr() == null ? other.getAddr() == null : this.getAddr().equals(other.getAddr()))
            && (this.getRegisterDate() == null ? other.getRegisterDate() == null : this.getRegisterDate().equals(other.getRegisterDate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getCreditCode() == null) ? 0 : getCreditCode().hashCode());
        result = prime * result + ((getTaxNo() == null) ? 0 : getTaxNo().hashCode());
        result = prime * result + ((getLegalName() == null) ? 0 : getLegalName().hashCode());
        result = prime * result + ((getLegalNo() == null) ? 0 : getLegalNo().hashCode());
        result = prime * result + ((getAddr() == null) ? 0 : getAddr().hashCode());
        result = prime * result + ((getRegisterDate() == null) ? 0 : getRegisterDate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", creditCode=").append(creditCode);
        sb.append(", taxNo=").append(taxNo);
        sb.append(", legalName=").append(legalName);
        sb.append(", legalNo=").append(legalNo);
        sb.append(", addr=").append(addr);
        sb.append(", registerDate=").append(registerDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}